package dev.ece.core.engine;

public class Joystick {
	
	public static int BUTTON_EVENT_PRESS = 1;
	
	public static int BUTTON_EVENT_RELEASE = 0;

	private int jid;
	
	private int index;
	
	private boolean present;
	
	private byte[] buttons;
	
	private float[] axes;

	public int getIndex() {
		return index;
	}

	protected void setIndex(int index) {
		this.index = index;
	}

	public int getJid() {
		return jid;
	}

	protected void setJid(int jid) {
		this.jid = jid;
	}

	public boolean isPresent() {
		return present;
	}

	protected void setPresent(boolean present) {
		this.present = present;
	}

	public byte[] getButtons() {
		return buttons;
	}

	protected void setButtons(byte[] buttons) {
		this.buttons = buttons;
	}

	public float[] getAxes() {
		return axes;
	}

	protected void setAxes(float[] axes) {
		this.axes = axes;
	}
	
}
